/*
 * @Author: 徐汉卿 xuhanqing@imohoo.com
 * @Date: 2023-07-18 15:47:08
 * @LastEditors: 徐汉卿 xuhanqing@imohoo.com
 * @LastEditTime: 2023-07-21 10:53:13
 * @FilePath: /sy-app2/src/store/notice.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// stores/counter.js
import { defineStore } from 'pinia'

export const noticeStore = defineStore('noticeStore', {
  state: () => {
    return { data: [] }
  },
  // 也可以这样定义
  // state: () => ({ count: 0 })
  actions: {
    setData(data) {
      this.data  = data
    },
  },
})

